{extend name="../application/public/base.html" /}
{block name="head"}
	<style type="text/css">
		/*.layui-tab-card{
			margin-bottom:15px;
			width: 31%;
			min-width: 320px;
			float: left;
		}*/
		.zcc-icon{
			transition: 0.3s all;
			display: inline-block;
		}
		.zcc-hide-icon{
			transform: rotate(-90deg)
		}
	</style>
{/block}
{block name="body"}
    <body>
        <div class="x-nav">
          <span class="layui-breadcrumb">
            <a href="">首页</a>
            <a href="">演示</a>
            <a><cite>导航元素</cite></a>
          </span>
          <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right;margin-left: 10px;" onclick="location.reload()" title="刷新"><i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
          <!-- <button class="layui-btn" style="margin-top:3px;float:right;">确定</button> -->
        </div>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card" >
                        <div class="layui-card-body">
                        	<!-- 维修设备分类 start -->
                            <div class="layui-tab layui-tab-card">
							  	<ul class="order_table">
									<li>维修设备管理</li>
							  	</ul>
							  	<div class="layui-card-body ">
		                            <div class="layui-btn" onclick="xadmin.open('增加设备分类','/repair/fault/add/ty/0')">增加</div>
		                            <div class="layui-btn" onclick="del_all('cate')">删除</div>
		                            <div class="layui-btn" onclick="xadmin.open('导入','/file/export_excel/export_excel/ty/cate')">导入</div>
		                        </div>
							  	<div class="layui-tab-content">
									<table class="layui-table layui-form" id="cate-box" lay-filter="list">
									</table>
							  	</div>
							</div>
							<!-- 维修设备分类 end -->
                        </div>
                    </div>
                </div>
            </div>
        </div> 
    </body>
{/block}
{block name="script"}
	<script type="text/javascript" src="ADMIN_CUSTOM/js/repair/fault/index.js"></script> 
	<script id="describes" type="text/html">
		{{# if(d.children === false){ }}
			<div class="layui-table-cell laytable-cell-1-name fid_{{d.fid}}" fault_id="{{d.fault_id}}"><i class="layui-icon layui-icon-file" style="margin-left: {{10*d.level}}px;"></i>{{d.describes}}</div>
		{{# }else{ }}
			<div class="layui-table-cell laytable-cell-1-name fid_{{d.fid}}" fault_id="{{d.fault_id}}"><span class="zcc-icon" lay-event="zcc-show-btn" ss="111" style="margin-left: {{10*d.level}}px;"><i class="layui-icon layui-icon-triangle-d"></i></span>{{d.describes}}</div>
		{{# } }}

	</script>
 
{/block}